#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
using namespace std;
int main()
{
    string buf;
    stringstream ss;
    float a = 10.123, b= 1.2345;
    ss<<fixed<<setw(10)<<"  "<<a << b;;
    ss>>buf;
    cout<<buf<<endl;
    cout<<cout.flags(ios::fixed|ios::hex | ios::left)<<ios.width(10)<<a;
}